package com.blog.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author zw
 * @since 2022-02-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Blog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String blogTitle;

    private Integer blogViews;

    private String userId;

    private Integer articleId;

    private Integer blogType;
    @JsonFormat(pattern = "yyyy-MM-dd kk:mm:ss", timezone="GMT+8")
    private Date blogTime;
    @JsonFormat(pattern = "yyyy-MM-dd kk:mm:ss", timezone="GMT+8")
    private Date lastTime;

    private Integer blogCollections;


}
